if (percentText <> member(percentMember).text) and showPercent then
member(percentMember).text = percentText
end if
end if
end
on getBehaviorDescription
return "What the behavior does:" & RETURN & RETURN & "Turns a sprite into a progress bar, indicating progress of the current movie's stream." & RETURN & RETURN & RETURN & "How to use:" & RETURN & RETURN & "1. Drag and drop this behavior on to the sprite that should act as the progress bar." & RETURN & RETURN & "2. Display Percent Downloaded (Optional)." & RETURN & RETURN & "If a field or text castmember is detected in one of the movie's casts, there is an additional option to display the percent downloaded of the movie. Check the checkbox provided to enable display of percent downloaded, and select the castmember that should be used to display the percent."
end
on getBehaviorTooltip
return "Use this to create an animating" & RETURN & "progress bar for a streaming movie." & RETURN & "Drop it on the sprite that will be" & RETURN & "used as the progress bar." & RETURN & RETURN & "If a field or text castmember exists," & RETURN & "there is an additional option to display" & RETURN & "the percent of the movie that has been" & RETURN & "downloaded."